<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<head>
<link rel=StyleSheet href="style.css" type="text/css" />
</head>

<body>
	<div class="wraperPrincipal">
		<f:view>

			<f:loadBundle basename="mensajes" var="msgs" />
			<h1>
				<h:outputText value="#{msgs['index.titulo']}" />
			</h1>
			<h:messages errorStyle="color: red; text-align: left;" />

			<h:form>
				<div class="wraperMedio">
					<h:panelGrid columns="2">
						<h:outputLabel for="usuario" value="#{msgs['index.usuario']}" />
						<h:inputText id="usuario" value="#{clienteBean.usuario}"
							label="#{msgs['index.usuario']}" />

						<h:outputLabel for="contrasena"
							value="#{msgs['index.contrasena']}" />
						<h:inputSecret id="contrasena" value="#{clienteBean.contrasena}"
							label="#{msgs['index.contrasena']}" />
					</h:panelGrid>
					<h:panelGroup>
						<h:commandButton id="btnIngresar"
							value="#{msgs['boton.ingresar']}"
							action="#{clienteBean.ingresar}" />
					</h:panelGroup>
				</div>
			</h:form>
		</f:view>
	</div>
</body>
</html>